.inbiz-comp-permission-data {
  width: 100%;
  height: 100%;
  display: flex;

  .left-group {
    color: var(--inbiz-color-heading);
    width: 232px;
    display: flex;
    padding-right: 10px;
    flex-direction: column;
    border-right: 1px solid #eee;

    .title-box {
      display: flex;
      padding: 15px 0;
      min-height: 42px;
      align-items: center;
      justify-content: space-between;

      >p {
        margin-bottom: 0;
      }

      >span {
        cursor: pointer;
        color: var(--inbiz-color-primary)
      }
    }

    .list-gourp {
      flex: 1;
      margin-top: 5px;
      display: flex;
      overflow: hidden auto;
      flex-direction: column;

      .list-group-item {
        min-height: 38px;
        display: flex;
        padding: 0 10px;
        font-size: 12px;
        align-items: center;
        overflow: hidden;
        border-radius: 4px;
        transition: all ease .3s;

        .item-name {
          flex: 1;
          overflow: hidden;
          user-select: none;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        .anticon {
          display: none;
          cursor: pointer;
          width: 30px;
          font-size: 14px;
          margin-right: -8px;
          color: var(--inbiz-color-text);

          &:hover {
            color: var(--inbiz-color-primary)
          }
        }

        &:hover {
          background-color: #f7f7f7;

          .anticon {
            display: inline-block;
          }
        }
      }

      .list-group-item-active {
        background-color: var(--ant-primary-1);

        &:hover {
          background-color: var(--ant-primary-1);
        }
      }
    }
  }

  .permision-right {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding-left: 20px;
    flex-direction: column;

    .permision-right-header {
      display: flex;
      padding: 10px 0;
      justify-content: space-between;
    }

    .ant-table-wrapper {
      flex: 1;
      overflow: hidden;

      .ant-spin-nested-loading {
        height: 100%;

        .ant-spin-container {
          height: 100%;

          .ant-table {
            display: flex;
            max-height: calc(100% - 48px);

            .ant-table-container {
              width: 100%;

              .ant-table-body {
                border-bottom: 1px solid #eee;
                max-height: calc(100% - 46px) !important;

                .ant-table-tbody {
                  >tr:last-child {
                    >td {
                      border-bottom: none;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    .ant-table-tbody>tr>td,
    .ant-table-thead>tr>th,
    .ant-table tfoot>tr>td,
    .ant-table tfoot>tr>th {
      padding: 11px;
    }

    .ant-pagination-options-size-changer.ant-select {
      width: auto !important;
    }
  }
}

.inbiz-comp-permission-data-role-config {
  .role-config-modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .anticon {
      font-size: 18px;
      cursor: pointer;
    }
  }

  .role-config-condition-title {
    display: inline-block;
    line-height: 32px;
  }

  .role-config-btns {
    display: flex;
    margin-top: 15px;
    margin-bottom: 15px;
    align-items: center;

    &-left {
      flex: 1;

      :global {
        .ant-form-item {
          margin-bottom: 0;
        }
      }
    }

    &-right {
      flex: 1;
      text-align: right;
    }
  }

  .role-config-group {
    border: 1px solid #eee;
    margin: 10px auto;
    padding: 10px 0;

    .user-add-btn {
      display: inline-block;
      cursor: pointer;
      color: #1890ff;
      color: var(--inbiz-color-primary);
    }

    .user-perm {
      margin-top: 10px;

      .condition-btn {
        .anticon {
          display: none;
        }
      }

      .ant-form-item {
        margin-bottom: 0;
      }

      .ant-row {
        padding: 0 10px;
        align-items: center;

        .anticon {
          color: #666;
        }

        &:hover {
          background-color: #efefef;

          .anticon {
            display: inline-block;
          }
        }
      }

      .ant-form-item-control {
        line-height: 40px;
      }
    }

    .condition-btn {
      font-size: 16px;
      color: #666;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      height: 32px;

      .anticon {
        color: #1890ff;
        color: var(--inbiz-color-primary);
      }

      .anticon:last-child {
        margin-left: 10px;
        position: relative;
      }
    }
  }

  .inbiz-pageloading {
    padding-top: 81px;
  }

  .ant-modal-content {
    .ant-modal-header {
      padding: 10px 12px 10px 24px;
    }

    .ant-modal-body {
      min-height: 400px;
      max-height: 600px;
      overflow: auto;
      padding: 0 24px;

      .ant-form>div:last-child {
        margin-bottom: 0;
      }

      .ant-form-item-with-help {
        margin-bottom: 0;
      }
    }
  }
}

.inbiz-comp-permission-data-role-config-full {
  .ant-modal-content {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    position: fixed;
    border-radius: 0;
    flex-direction: column;

    .ant-modal-header {
      border-radius: 0;
    }

    .ant-modal-body {
      flex: 1;
      max-height: 100vh;
    }
  }
}